<template>
  <div class="A">
    <h3>我是A组件</h3>
    <p>
      {{ msg }}
    </p>
    <B></B>
  </div>
</template>

<script setup lang="ts">
import B from "./b.vue";
import { inject } from "vue";
let msg = inject("msg");
</script>
<style>
.A {
  width: 400px;
  height: 400px;
  background: blue;
}
</style>
